package me.zhengjie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import me.zhengjie.dao.InventoryTaskDao;
import me.zhengjie.dao.LockMatDao;
import me.zhengjie.dao.MaterialDao;
import me.zhengjie.dao.NoMaterialsDao;
import me.zhengjie.vo.Inventory.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface MaterialMapper extends BaseMapper<MaterialDao> {


//    Page<ContainerExtractVo> findAvailableData(Page<ContainerExtractVo> page, InventoryExtractBaseVo baseVo);
//
//    Page<ContainerMoveVo> findAvailableMoveData(Page<InventoryMoveBaseVo> page, InventoryMoveBaseVo baseVo);

    MaterialDao findItemBarCodeByContainerCode(String containerCode);

    Double countTotalMaterialWeight(String containerCode);

    Double BymaterialCodeGetFloor(String materialCode, String floorId);

    List<MaterialDao> selectListForNo(NoMaterialsDao param);

    List<LockMatDao> selectForList(String materialCode, String floor);

    Double getInventoryQuantity(String materialCode);

    List<String> selectOrderList(String materialCode);

    List<String> selectBatchList(String materialCode);

    Integer selectCoount();
}
